package com.zijin.properties;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Title: SnowflakeIdProperties
 * @Author JWei Xu
 * @Package com.zijin.properties
 * @Date 2024/12/7 16:37
 * @description: 雪花算法工具类的配置参数准备
 */

@Slf4j
@Component
@ConfigurationProperties(prefix = "zijin.snowfake")
@Data
public class SnowflakeIdProperties {

    private long workerId;
    private long datacenterId;

}
